using System.Collections.Generic;

namespace System.Runtime.Remoting.ViewService
{
    [Serializable]
    public class LamdaAction : IRemoteAction
    {
        private static readonly Dictionary<int, Action> sf_Actions = new Dictionary<int, Action>();

        private readonly int f_ID;
        public string Name { get; private set; }

        public LamdaAction(string Name, Action action)
        {
            this.Name = Name;
            f_ID = base.GetHashCode();
            sf_Actions.Add(f_ID, action);
        }

        public void Invoke() { }
    }
}